package Modele;

public class Ressource extends Contenu {

	private TypeRessource typeRessource;
	private int quantite;
	private int x;
	private int y;
	
	public Ressource(TypeRessource tr, int q) {
		this.typeRessource = tr;
		this.quantite = q;
		this.x = 0;
		this.y = 0;
	}
	
	public void setX(int x) {
		this.x = x;
	}
	
	public void setY(int y) {
		this.y = y;
	}
	
	public int getX() {
		return this.x;
	}
	
	public int getY() {
		return this.y;
	}
	
	public TypeRessource getTypeRessource() {
		return this.typeRessource;
	}
	
	public int getQuantite() {
		return this.quantite;
	}
	
	public String toString() {
		return this.typeRessource.toString() + " - " + this.quantite;
	}
	
}
